<?php
  include 'header.php';
  $hide_footer = 1;
  if ($_SERVER['REQUEST_METHOD'] != 'GET') {
      echo 'This file cannot be called directly.';
  } else {
      if ($_SESSION['user_level'] == 1) {
          echo '<hr><br><div align="center"><b><span style="color:green">This message </b>has been deleted successfully.</span> <br />';
          echo '<br><a class="loginlink" href="topic.php?t=' . mysql_real_escape_string($_GET['t']) . '&page=' . mysql_real_escape_string($_GET['page']) . '">Return to the topic last  visited</a>.';
          echo '<br><br><a class="loginlink" href="index.php">Return to the board index</a>.</div><br />';
          $hide_footer = 1;
      } else {
          header('location: topic.php?t=' . mysql_real_escape_string($_GET['t']) . '&page=' . mysql_real_escape_string($_GET['page']) . '');
      }
  }
  if ($pageTitle = "") {
      $pageTitle = $l_forumname;
  }
  $pageContents = ob_get_contents();
  ob_end_clean();
  echo str_replace('<!--TITLE-->', $pageTitle, $pageContents);
  if ($hide_footer != 1) {
      include 'footer.php';
  }
?>